const router = require('koa-router')();
const category = require('../controllers/category');

router.prefix('/category');

router.get('/getCategory', category.getCategory);
router.post('/addCategory', category.addCategory);
router.post('/updateCategory', category.updateCategory);
router.post('/deleteCategory', category.deleteCategory);
router.get('/getHotCategory', category.getHotCategory);

module.exports = router;